<template>
    <div class="publishContainer">
        <div class="publishContent">
            <div class="publishSay" @click="gotoSay">
                <div class="sayContent content">
                    <div class="sayImg img"></div>
                    <p class="sayTitle">发论坛！</p>
                </div>
            </div>
            <div class="publishHole" @click="gotoHole">
                <div class="holeContent content">
                    <div class="holeImg img"></div>
                    <p class="holeTitle">发树洞~</p>
                </div>
            </div>
        </div>
        <div class="cancelImg" @click="goBack"></div>
    </div>
</template>

<script>
    export default {
        name:'myPublish',
        methods:{
            goBack(){
                this.$router.back()
            },
            gotoSay(){
                this.$router.push({
                    name:'publishSay'
                })
            },
            gotoHole(){
                this.$router.push({
                    name:'publishHole'
                })
            }
        }
    }
</script>

<style scoped>
    .publishContainer{
        width: 100%;
        position: relative;
    }
    .publishContent{
        margin-top: 1.76rem;
        width: 6.86rem;
        margin-left: .32rem;
    }
    .img{
        width: .48rem;
        height: .48rem;
        background-position: center;
        background-size: contain;
        margin-right: .4rem;
    }
    .sayImg{
        background-image: url(../assets/img/5-icon@2x/5-2say.png);
    }
    .holeImg{
        background-image: url(../assets/img/5-icon@2x/5-3hole.png);
    }
    .publishContent>div{
        width: 100%;
        height: 90px;
        background-color: #FFF;
        margin-bottom: 20px;
        border-radius: .3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'PingFangSC-Mediuem';
        color:#333333;
        font-size: 17px;
    }
    .content{
        display: flex;
        align-items: center;
    }
    .cancelImg{
        width: .96rem;
        height: .96rem;
        background-position: center;
        background-size: contain;
        background-image: url(../assets/img/5-icon@2x/5-4cancel.png);
        position: absolute;
        left: 3.28rem;
        top:12.78rem;
    }
</style>